using System;
using System.Collections.Generic;
using Cysharp.Threading.Tasks;

namespace EventBus
{
    /// <summary>
    /// 同步监听事件
    /// </summary>
    public partial class EventBusImpl
    {
        
        public void Listen(string eventName, Action callback)
        {
            ListenImpl(eventName, callback);
        }

        public void Listen<T>(string eventName, Action<T> callback)
        {
            ListenImpl(eventName, callback);
        }

        public void Listen<T1, T2>(string eventName, Action<T1, T2> callback)
        {
            ListenImpl(eventName, callback);
        }

        public void Listen<T1, T2, T3>(string eventName, Action<T1, T2, T3> callback)
        {
            ListenImpl(eventName, callback);
        }
        
        public void Listen<T1, T2, T3, T4>(string eventName, Action<T1, T2, T3, T4> callback)
        {
            ListenImpl(eventName, callback);
        }
        
        public void Listen<T1, T2, T3, T4, T5>(string eventName, Action<T1, T2, T3, T4, T5> callback)
        {
            ListenImpl(eventName, callback);
        }
        
        public void Listen<T1, T2, T3, T4, T5, T6>(string eventName, Action<T1, T2, T3, T4, T5, T6> callback)
        {
            ListenImpl(eventName, callback);
        }
        
        public void Listen<T1, T2, T3, T4, T5, T6, T7>(string eventName, Action<T1, T2, T3, T4, T5, T6, T7> callback)
        {
            ListenImpl(eventName, callback);
        }
        
        public void Listen<T1, T2, T3, T4, T5, T6, T7, T8>(string eventName, Action<T1, T2, T3, T4, T5, T6, T7, T8> callback)
        {
            ListenImpl(eventName, callback);
        }
    }
}